<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>验证</title>
		<script src="../js/jquery-3.6.3.min.js"></script>
		<script>
			
			$(function(){
				var isSubmit=false;
				$("input[name=email],input[name=pass]").blur(function(){
					//triggerHandler和trigger
					//$("form").triggerHandler("submit");
					//$("form").trigger("submit");
					//$(this).trigger("change"); 
					//isSubmit=false;
				});
				$("form").submit(function(event){
					//alert(event.target);
					// if(isSubmit==false)
					// {
					// 	isSubmit true;
					// 	return false;
					// }  
					return true;
				});
			});
		</script>
	</head>
	<body>
		<form action="1.html">
			<p>
				<label>邮箱:</label><input type="email" value="222@qq.com" name="email" placeholder="请输入常用邮箱" required/>
				<span></span>
			</p>
			<p>
				<label>密码:</label><input value="1399393939393" type="password" name="pass" placeholder="密码8-20个字符" required pattern="\w{8,20}"/>
			</p>
			
			<p><label>请同意我们的<a href="#">用户协议</a></label>
			<input type="checkbox" name="accept" value="yes" required/>
			</p>
			<p>
				<button type="submit">登录</button>
			</p>
		</form>
	</body>
</html>